<?php 
header('Content-type:text/html;charset=utf-8');

$arrYear = range(2000,2016,1);
$arrMonth = range(1,12,1);
$arrDay = range(1,31,1);


?>

<form action="test1.php">
	<select name="year">
<?php 
foreach ($arrYear as $key => $value) {
	?>
	<option><?php echo $value ?></option>
<?php
}
 ?>
	</select>
	<select name="month">
<?php 
foreach ($arrMonth as $key => $value) {
?>
	<option><?php echo $value ?></option>
<?php
}
 ?>
	</select>
	<select name="day">
<?php 
foreach ($arrDay as $key => $value) {
?>
<?php 
	if($value == 14){
		echo "<option selected='selected'>$value</option>";
	}else{
		echo "<option>$value</option>";
	}
 ?>
}
}
<?php
}
 ?>
	</select>
	<input type="submit">
</form>





